package cn.zt.domain.dto;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class FlightDTO {
    private String bDestination;//出发地站名
    private String eDestination;//终点地站名
        @DateTimeFormat(pattern = "yyyy-MM-dd")
        private Date bDate;
        @DateTimeFormat(pattern = "yyyy-MM-dd")
        private Date eDate;

    public FlightDTO() {
    }

    public FlightDTO(String bDestination, String eDestination, Date bDate, Date eDate) {
        this.bDestination = bDestination;
        this.eDestination = eDestination;
        this.bDate = bDate;
        this.eDate = eDate;
    }

    public String getbDestination() {
        return bDestination;
    }

    public void setbDestination(String bDestination) {
        this.bDestination = bDestination;
    }

    public String geteDestination() {
        return eDestination;
    }

    public void seteDestination(String eDestination) {
        this.eDestination = eDestination;
    }

    public Date getbDate() {
        return bDate;
    }

    public void setbDate(Date bDate) {
        this.bDate = bDate;
    }

    public Date geteDate() {
        return eDate;
    }

    public void seteDate(Date eDate) {
        this.eDate = eDate;
    }
}
